how to calculate cube of a number in python